<?php
$yii2appid = \common\config\Env::$yii2appid_console;
$config = [
    'id' => 'app-console',
    'basePath' => dirname(__DIR__),
    'controllerNamespace' => 'console\controllers',
    'controllerMap' => [
        'fixture' => [
            'class' => 'yii\console\controllers\FixtureController',
            'namespace' => 'common\fixtures',
        ],
        'schedule' => [
            'class' => \omnilight\scheduling\ScheduleController::class,
            'scheduleFile' => '@app/schedule.php'
        ],
    ],
    'bootstrap' => [],
    'components' => [
        'user' => [
            'class' => \common\rewrite\web\User::class,
            'identityClass' => \common\models\db\User::class,
            'isInConsole' => true,
            'enableSession' => false,
        ],
        'appinfo' => [
            'class' => \common\members\wodrow\components\yii2app\Appinfo::class,
            'name' => $yii2appid,
        ],
    ],
    'modules' => [],
    'as login' => [
        'class' => \console\behaviors\Login::class,
        'except' => [
            '*',
        ],
    ],
    'params' => [],
];

return $config;
